package com.jml.netty.手写注册中心.entity;

import java.io.Serializable;


public class AgreementEntity implements Serializable {
    // 0为生产者  1为消费者
    private Integer type;

    // 服务id
    private String serviceId;

    // 服务地址
    private String addres;

    public AgreementEntity(Integer type, String serviceId, String addres) {
        this.type = type;
        this.serviceId = serviceId;
        this.addres = addres;
    }

    public Integer getType() {
        return type;
    }

    public String getServiceId() {
        return serviceId;
    }

    public String getAddres() {
        return addres;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public void setAddres(String addres) {
        this.addres = addres;
    }
}
